package com.buba.system.dao;

import com.buba.system.pojo.LoginLog;
import com.buba.system.pojo.Page;
import com.buba.system.pojo.SystemUser;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface LoginMapper {

    SystemUser login(SystemUser systemUser);

    Integer updpas(SystemUser systemUser);

    Integer addLogin(Map<String, Object> map1);

    Integer delLogin(String employeeId);

    Integer delLoginAll(List<String> list);

    void addLoginLog(LoginLog loginLog);

    String selLoginByEmployeeId(SystemUser systemUser);

    Long selLoginLogCount();

    List<LoginLog> selLoginLog(Page page);

    Long selLoginLogCountByName(Map<String, Object> map);

    List<LoginLog> selLoginLogByName(Map<String, Object> map);
}
